Guard Nodes:

OVERVIEW:
Guard nodes are items used to control and spawn guards in all the cities.

FEATURES:
Guard nodes listen to speech events in a radius of 30 tiles.
Guard nodes search for criminals in a radius of 30 tiles.
Guard nodes receive events from merchant nodes.
Guard nodes send events to nearby guards to attack criminals
Guard nodes spawn their own guards as needed, and will replace any guards that may be killed in the line of duty.

Guards do not listen directly for guard calls, so they consume less CPU cycles.
Guards do listen for certain keywords at a very close range. so a player must be close to them to get a response.
It is very difficult to kill a town guard as they will heal and cure themselves if they reach half health or are poisoned.


Setup:
Guard nodes must be setup in a grid in all guard protected cities if you wish to cover the entire city.

To cover a town or an area completely follow the instructions below:
Since guard nodes have a listen range of 30 tiles diameter, they should be placed in the following manner:
Place nodes from the west side of town to the east
Find the town border and travel east 30 tiles.
Then find the north border and travel south 30 tiles
Place a node there. The node will spawn its own guard.
Now travel 60 tiles south and place another node (30 tile radius for each node)
Continue until you reach the south border of the town.
Any guard nodes that extend past the town border will only work within the actual town limits, so you do not have to worry about extending past town limits.
Guard zones are defined in config/gzone.cfg.
For each node you have placed continue the above grid to the east till you hit the east edge of town.
Once you fill in the grid, your town will be completely covered.
Use the .create command to create guard nodes, .create guardnode
This will create the guard node at your feet.
If you do not see the guard node use the .info command on yourself and click on the blue button by Privileges and make sure seeinvisitems is enabled.
If you wish to target the location to create the guard node use .createat guardnode


You can use (double-click) on the guard node to bring up a gump with various settings:


If you have different types of guards you can change the guard type.
You can set the number of guards spawned by the node.
Select the Respawn Gards check box if you want to respawn the guards.
You can disable and enable the node. This is helpful for special events when you do not want guards around. When the node is enabled it will be a dark red, when disabled it will be a light green.
Remember that any changes made in the gump will not take effect until you click the Apply button.